package com.etl.borrow.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xr.model.Model;

/**
 * <p>
 * 借款用户资金流水
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-03-24
 */
@TableName("etl_borrow_user_funds_data")
public class BorrowUserFundsData extends Model {

    private static final long serialVersionUID = 12L;

    /**
     * 流水ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户号
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 金额
     */
    private Double amount;
    /**
     * 余额
     */
    private Double balance;
    /**
     * 标志位
     */
    private Integer income;
    /**
     * 交易类型
     */
    private Integer type;
    /**
     * 关联ID
     */
    @TableField("ref_id")
    private Long refId;
    /**
     * 关联表
     */
    @TableField("ref_table")
    private Integer refTable;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getBalance() {
        return balance;
    }

    public void setBalance(Double balance) {
        this.balance = balance;
    }

    public Integer getIncome() {
        return income;
    }

    public void setIncome(Integer income) {
        this.income = income;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getRefId() {
        return refId;
    }

    public void setRefId(Long refId) {
        this.refId = refId;
    }

    public Integer getRefTable() {
        return refTable;
    }

    public void setRefTable(Integer refTable) {
        this.refTable = refTable;
    }

    @Override
    public String toString() {
        return "BorrowUserFundsData{" +
        ", id=" + id +
        ", userId=" + userId +
        ", amount=" + amount +
        ", balance=" + balance +
        ", income=" + income +
        ", type=" + type +
        ", refId=" + refId +
        ", refTable=" + refTable +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", feature=" + feature +
        "}";
    }
}
